\usepackage[utf8]{inputenc}                      			% Codificación de caracteres en UTF-8.
\usepackage[spanish]{babel}                      			% Cambia las variables del documento a español.
\usepackage{graphicx}	                         			% Manejo de imágenes.
\usepackage[usenames,dvipsnames]{color}          		% Para usar y definir colores.
\usepackage{wallpaper}                           			% Colocar imágenes en el fondo del documento.
\usepackage{fancyhdr}                            			% Manejo de encabezados.
\usepackage{anysize}
\usepackage[Sonny]{fncychap}                     			% Manejo de capítulos: Sonny, Lenny, Glenn, Conny, Rejne and Bjarne.
%\usepackage{marvosym}                            			% Algunos símbolos.
\usepackage{chapterfolder}
\usepackage[table]{xcolor}
\marginsize{3cm}{3cm}{1cm}{4.5cm} 

%============================================================================%
\setlength{\headheight}{50pt}
\pagestyle{fancyplain} {
	\fancyhead[L]{\includegraphics[height=45pt]{images/ipn}}
	\fancyhead[R]{\includegraphics[height=50pt]{images/escom}}
	\fancyfoot[C]{\thepage \\ Reporte de Trabajo Terminal 1. Versión 1.0 Fecha: XX de XX de XX}
}
%============================================================================%

%=====================================================
% Definición de colores
\definecolor{titleColor}{rgb}{0.3, 0.3, 0.3}
\definecolor{subTitleColor}{rgb}{0.45, 0.45, 0.45}
\definecolor{authorColor}{rgb}{0.8, 0.4, 0.4}
\definecolor{sectionColor}{rgb}{0.01, 0.23, 0.36}
\definecolor{subsectionColor}{rgb}{0.0, 0.28, 0.44}
\definecolor{instruccionesColor}{rgb}{0.5, 0.5, 0.5}

%=====================================================
\newcommand{\varSubTitle}{}
\newcommand{\subtitle}[1]{\renewcommand{\varSubTitle}{#1}}

\newcommand{\varTitle}[1]{}
\let\varTitle=\title
\renewcommand{\title}[1]{%	
	\varTitle{{\Huge\color{titleColor}#1}%
	\\{\LARGE \color{subTitleColor}\varSubTitle}~{}\bigskip\\\color{authorColor}\rule{\textwidth}{1mm}}%
}

\newcommand{\varAuthor}[1]{}
\let\varAuthor=\author
\renewcommand{\author}[1]{%
	\varAuthor{\color{authorColor}#1\\\color{subTitleColor}\varOrganization}%
}

\renewcommand{\labelitemi}{\color{sectionColor}\textbullet}

%=====================================================

\newcommand{\varSection}[1]{}
\let\varSection=\section
\renewcommand{\section}[1]{{\color{sectionColor}\varSection{#1}}}

\newcommand{\varSubSection}[1]{}
\let\varSubSection=\subsection
\renewcommand{\subsection}[1]{{\color{subsectionColor}\varSubSection{#1}}}

\newcommand{\varSubSubSection}[1]{}
\let\varSubSubSection=\subsubsection
\renewcommand{\subsubsection}[1]{{\color{subsectionColor}\varSubSubSection{#1}}}

\ChTitleVar{\Large\sf\color{titleColor}}
\ChNumVar{\Huge\color{subTitleColor}}
\ChNameVar{\Large\sf\color{subTitleColor}}


%=====================================================

